package com.jd.finance.core.service;

import com.baomidou.mybatisplus.extension.service.IService;
import com.jd.finance.core.pojo.entity.Node;
import com.jd.finance.result.BaseResult;
import org.apache.ibatis.annotations.Param;

import javax.servlet.http.HttpServletRequest;

/**
 * <p>
 * 菜单表(权限表) 服务类
 * </p>
 *
 * @author LiQingBo
 * @since 2022-05-20
 */
public interface NodeService extends IService<Node> {

    /**
     * 根据uid查询菜单
     *
     * @param uid
     * @return
     */
    BaseResult getAdminList(@Param("uid") Integer uid);

    /**
     * 添加节点
     *
     * @param uid
     * @param listName
     * @param listUrl
     * @param request
     * @return
     */
    BaseResult addNode(@Param("uid") Integer uid, @Param("listName") String listName, @Param("listUrl") String listUrl, @Param("request") HttpServletRequest request);

    /**
     * 查看所有节点信息
     *
     * @param uid
     * @return
     */
    BaseResult selectNodeInfo(@Param("uid") Integer uid);


}
